<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
	<script>
		
	</script>
</h:head>
<h:body>

	<h:form id="formEditaChamado" enctype="multipart/form-data">
		<div>
			<p:panel>
				<h:outputLabel value="#{message.label_upload_imagem}"
					styleClass="LabelFont" />
				<br />
				<p:fileUpload id="idUploader" style="font-size: 13px;"
					fileUploadListener="#{chamadoTela.enviaArquivo}" mode="advanced"
					sizeLimit="1500000" allowTypes="/(\.|\/)(jpe?g|rar|zip|png)$/"
					label="#{message.botao_escolher}"
					uploadLabel="#{message.botao_carregar}"
					cancelLabel="#{message.botao_cancelar}" showButtons="false"
					auto="true" invalidSizeMessage="#{message.msg_tamanho_arquivo}"
					invalidFileMessage="#{message.msg_tipo_arquivo}" 
					update=":messages"/>
			</p:panel>
			<div class=".ym-grid">
				<div class=".ym-gl" style="margin-top: 8px;">
					<h:outputLabel value="#{message.label_comentario}"
						styleClass="LabelFont" />
					<br />
					<p:editor id="editorEditar" widgetVar="editor" lazy="true"
						value="#{chamadoTela.chamado.descricao}" width="600" />
				</div>
			</div>
			<br /> <br />
		</div>
		<div
			style="left: 50%; margin-left: -170px; position: relative; width: 300px;">
			<p:commandButton value="#{message.botao_alterar}" icon="ui-icon-disk"
				action="#{chamadoTela.editaChamado}"
				style="margin-right: 10px; margin-left: 65px; font-size: 14px;"
				update=":messages,:formChAbe:idTChAbe,@form" oncomplete="dlg13.hide()"/>
			<p:commandButton value="#{message.botao_cancelar}" immediate="true"
				icon="ui-icon-close" style="font-size: 14px;" onclick="dlg13.hide()" />
		</div>
	</h:form>
</h:body>
</html>